def func1():
    yield 1
    yield from func2()  # 切换到func2(),执行完后继续执行下面的
    yield 2


def func2():
    yield 3
    yield 4


f1 = func1()
for item in f1:
    print(item)
